package demo20;

import java.util.Scanner;

public class Main {
    public static void main(String[]args){
        dui d=new dui();
        int array[]={9,5,12,3,18,7};
        d.initial(array);
        Scanner in=new Scanner(System.in);
        System.out.println();
        System.out.println("请输入你要删除的元素：");
        int num2=in.nextInt();
        d.delete(num2);
        System.out.println("请输入你要插入的数：");
        int num= in.nextInt();
        d.insert(num);
        d.peek();
        d.poll();

    }
}
